package com.mall.b2c.bean;

import com.mall.b2c.domain.goods.BrandDomain;
import com.mall.common.util.BeanUtils;
import com.mall.common.util.UploadUtil;

/**
 * 品牌
 * @author lzx
 *
 */
public class BrandBean {

	private Long id;
	private String name;// 名称
	private String logo;// logo
	private String advert;// 首页推荐展示图片
	private String detailPic;// 详情页展示图片
	private String url;// 网址
	private String introduction;// 介绍
	private Boolean isRecommend;// 是否推荐
	private Integer priority;// 排序
	private Integer goodsQuantity;
	
	public BrandBean() {
	}
	
	public BrandBean(BrandDomain brand) {
		if(brand == null){
			return;
		}
		BeanUtils.copyProperties(brand, this);
		setLogo(UploadUtil.replacePath(logo));
		setAdvert(UploadUtil.replacePath(advert));
		setDetailPic(UploadUtil.replacePath(detailPic));
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getAdvert() {
		return advert;
	}

	public void setAdvert(String advert) {
		this.advert = advert;
	}

	public String getDetailPic() {
		return detailPic;
	}

	public void setDetailPic(String detailPic) {
		this.detailPic = detailPic;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public Boolean getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Boolean isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public Integer getGoodsQuantity() {
		return goodsQuantity;
	}

	public void setGoodsQuantity(Integer goodsQuantity) {
		this.goodsQuantity = goodsQuantity;
	}
	
}
